package com.dt.dubai.mech.service;

import com.dt.dubai.mech.entity.MechMarketingActivityEntity;
import com.dt.dubai.mech.service.innate.MechMarketingActivitySerInnateAbsImp;
import com.dt.dubai.mech.service.ser.MechMarketingActivityService;
import org.springframework.stereotype.Service;

@Service
public class MechMarketingActivityServiceImp extends MechMarketingActivitySerInnateAbsImp implements MechMarketingActivityService {

    /*innateServiceStart*/
    @Override
    protected void userSavEntity(MechMarketingActivityEntity inEntity) {

    }

    @Override
    protected void userModEntity(MechMarketingActivityEntity inEntity, MechMarketingActivityEntity upEntity) {
        upEntity.setAdminLoginRecordId(inEntity.getAdminLoginRecordId()); // 商户登录记录ID
        upEntity.setCommodityType(inEntity.getCommodityType()); // 类型
        upEntity.setActivityName(inEntity.getActivityName()); // 活动名称
        upEntity.setActivityTitle(inEntity.getActivityTitle()); // 活动标题
        upEntity.setActivityContent(inEntity.getActivityContent()); // 活动内容
        upEntity.setActivityBannerUrl(inEntity.getActivityBannerUrl()); // 活动banner
        upEntity.setStartTime(inEntity.getStartTime()); // 活动开始时间
        upEntity.setEndTime(inEntity.getEndTime()); // 活动结束时间
        upEntity.setYesRelease(inEntity.getYesRelease()); // 是否发布
        upEntity.setRemarks(inEntity.getRemarks()); // 备注

    }
    /*innateServiceEnd*/
    /*以上内容请误删除或是移动，系统升级使用，static系统升级覆盖用户修改，用户代码请写入下方*/
}
